<div class="box">
    <h2 class="title"><?php echo $model->title; ?></h2>
    <div class="news details documents">
        <div class="item clearfix">
            <div class="extra"><?php $ts = strtotime($model->document->create_time); echo '<b>'.Yii::t('site/general','Published').' : </b>'.((Yii::app()->language=='vi_vn') ? date('d/m/Y',$ts) : date('m/d/Y',$ts)); ?></div>
            <div class="extra"><?php $ts = strtotime($model->document->update_time); echo '<b>'.Yii::t('site/general','Last updated').' : </b>'.date('h:i A',$ts).' | '.((Yii::app()->language=='vi_vn') ? date('d/m/Y',$ts) : date('m/d/Y',$ts)); ?></div>
            <div class="extra"><?php echo '<b>'.Yii::t('site/general','Downloads').' : </b>'.$model->document->downloads; ?></div>
            <div class="extra"><?php echo '<b>'.Yii::t('site/general','Views').' : </b>'.$model->document->views; ?></div>
            <div class="extra"><a href="<?php echo Yii::app()->createUrl('/Site/documents/download',array('id'=>$model->document_id)); ?>"><img border="0" src="<?php echo baseUrl().'/image/download.jpg'; ?>" /></a></div>
            <div class="extra"><?php echo $model->description; ?></div>
        </div>
    </div>
</div>
